Skip to content

test(wsi): integration check for #29 + #17 + #18 + #28 (not a merge target) - #22

Closed
raylim wants to merge 456 commits into
masterfrom
codex/wsi-rd-integration
Closed

raylim wants to merge 456 commits into
masterfrom
codex/wsi-rd-integration

Conversation

@raylim

@raylim raylim commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Integration-check branch, not a merge target. It combines the study Pathology Slides stack with the fork follow-ups so they can be built, tested and deployed together on the wsi-rd dev stack (port 27500).

Contents

Annotation authoring (#19) and the research assistant (#20) are not included.

The tree equals deploy/wsi-rd-children-20261112 (dd19c06), which merges the four heads above in order. The branch head is a merge whose second parent is that commit and whose tree is taken from it.

Merge resolutions

The children overlap only in the viewer package, and every overlap keeps both sides:

Checks

  • tsc --noEmit -p .: clean.
  • Jest: viewer package (35 suites, 451 tests); src/ WSI, study-view resource/Pathology Slides/Clinical Data, patient timeline, resource-table and router specs (20 suites, 312 tests); cbioportal-clinical-timeline (2 suites, 13 tests).
  • pnpm install --frozen-lockfile, pnpm run buildAll, pnpm run checkWsiBundle: pass.
  • Deployed on the wsi-rd dev stack and checked in a headless browser.

🤖 Generated with Claude Code

@raylim
raylim force-pushed the codex/wsi-rd-integration branch 3 times, most recently from e1662a1 to 432a228 Compare September 30, 2026 21:01
@raylim
raylim force-pushed the codex/wsi-viewer-package branch from 7a9b5a1 to 22d3149 Compare October 15, 2026 20:07
@raylim
raylim force-pushed the codex/wsi-rd-integration branch from ce7548d to 577ec15 Compare October 15, 2026 21:21
raylim added a commit that referenced this pull request Oct 15, 2026
…rge target)

Rebuilt from the rebased cBioPortal#5732 (44b68b8) by merging #17 (30456c9),
#18 (643d044), #20 (d81dab9, includes #19) and #23 (008ce69).

Squash of #22 onto the rebased cBioPortal#5732 after resource table v2 merged upstream.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
raylim and others added 23 commits October 22, 2026 15:37
…D) into codex/wsi-rd-integration

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…wer base 9f86f50)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… viewer base 9f86f50)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…wer base 9f86f50)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…WSI viewer base 9f86f50)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The viewer reads a patient's slides from the portal's generic resource
table API (WSI_SAMPLE and WSI_PATIENT through
/api/resource-table/query/fetch) and builds the sample → part → block →
slide tree itself: unmatched slides first, then parts and blocks by
number. Each servable slide carries its tile metadata from the row's
wsi_serving; the access endpoint now returns only the tile capability.

The internal PatientHierarchy and WsiSlideAccess shapes are unchanged,
so the controller and views are untouched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	end-to-end-test-playwright/tests/wsi-foundation-mocks.ts
# Conflicts:
#	end-to-end-test-playwright/tests/wsi-foundation-mocks.ts
#	packages/cbioportal-wsi-viewer/src/wsiHierarchyFetchCache.ts
# Conflicts:
#	packages/cbioportal-wsi-viewer/src/wsiAuth.spec.ts
# Conflicts:
#	end-to-end-test-playwright/tests/wsi-foundation-mocks.ts
#	packages/cbioportal-wsi-viewer/src/wsiAuth.spec.ts
The viewer lists a patient's slides through the resource table API, so the
study slides Playwright mock answers /api/resource-table/query/fetch with a
WSI_SAMPLE row carrying wsi_serving, and the hash test feeds slide rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…acets-ui

# Conflicts:
#	end-to-end-test-playwright/tests/wsi-study-slides-mocked.spec.ts
# Conflicts:
#	end-to-end-test-playwright/tests/wsi-foundation-mocks.ts
#	packages/cbioportal-wsi-viewer/src/wsiAuth.spec.ts
Same change as codex/wsi-rd-study-slides b40e08c (held there until the
slide table's resource id is settled): the study slides Playwright mock
answers /api/resource-table/query/fetch with a WSI_SAMPLE row carrying
wsi_serving, and the hash test feeds slide rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
raylim and others added 27 commits November 5, 2026 13:18
Drop ResourceTableStore.setContextFromSelection/setContextFromSamples,
unused in production, and port their specs to cohortFromSelection and
cohortFromSamples. ResourceViewerStore keeps one ResourceCohort behind
setCohort; the patient view builds its identifier-only cohort and sets
it on every store, so its requests are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…udy-slide-table

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Replace the WSI_SLIDES resource tab with a "Pathology slides" tab that
reads both slide resources together through resourceIds, with the study
view's cohort. ResourceTableStore takes combined tabs: each replaces its
resources' own tabs, reads the ones the cohort has, and sends them as
resourceId or resourceIds on the rows, metadata and download requests.

ResourcePolicy defines the combined tab, and hides each slide's serving
block (sealed source and tile metadata) from the table and its download.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…bined slide tab)

Brings in feat/resource-table-grouped (cBioPortal#5814) and the combined Pathology
slides tab. With the slide viewer configured, the Pathology Slides tab
shows that table as its Slide table view and the resource tabs leave it
out; old links to resourceTable_WSI_SLIDES, _WSI_SAMPLE and
_PATHOLOGY_SLIDES open that view. A table row's View opens the slide by
its slide_key metadata.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The study-view Pathology Slides tab lists its patients from the generic
resource table instead of a dedicated endpoint:

- groups/fetch over WSI_SAMPLE and WSI_PATIENT (those the studies hold,
  from tabs/fetch), grouped by patient, with the study view's cohort,
  counting slides per metadata:stain_group; locate keeps the selected
  patient's place ("i of N") across pages, filters and cohort changes;
- each listed patient's distinct samples from the same slides grouped by
  sample, narrowed to the page's patients;
- stain and match filters as metadata column filters, and the stain
  chips' patient counts from grouped metadata/fetch facets;
- the search box searches IDs and slide metadata, and a pasted Slide ID
  its slide key.

ResourceTableTestServer answers the resource-table endpoints over fixed
rows for the unit and mocked Playwright specs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…(resource-table groups)

Brings in the Pathology Slides tab on resource-table groups/fetch and
metadata/fetch. The clinical facet controls read the dedicated
study-slides facets endpoint, which the tab no longer uses, so this
merge takes the base's tab as it is; the next commit puts the facet
controls on the slide metadata facets.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…/fetch

The tab's filter controls work on the slide resources' own columns:

- the facet selects (Stain, Part Type and Subspecialty by default, more
  with "More filters") list each column's values with the patients
  having them, from grouped metadata/fetch facets, and filter the list
  with metadata:<key> column filters;
- the match chips count patients per match level from the same facets;
- the search dropdown suggests column values and match levels containing
  the typed text; ID-like text searches as it is typed, other text when
  chosen;
- the column filters are kept in the URL (wsiFacets) with the stain,
  match and search filters, and cleared with them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ResourceTableStore takes two more options next to hideResource:
combinedTabs, tabs that each read several resources together through
resourceIds in place of their own tabs, and hideMetadataKey, which names
metadata keys the table leaves out of its columns and its download.
Without them the table behaves as before. Study view's tables take their
options from ResourcePolicy's STUDY_VIEW_RESOURCE_TABLE_OPTIONS.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Combined tabs and hidden metadata keys now come from the generic
ResourceTableStore options; this branch keeps the WSI policy that fills
them (the Pathology slides tab over WSI_SAMPLE and WSI_PATIENT, the
slides' serving block hidden) in STUDY_VIEW_RESOURCE_TABLE_OPTIONS, plus
the Slide ID display and search and the slide row links.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
isResourceListedInTable asks hideResource about the combined tab a
resource belongs to, as the tab list does, so hiding a combined tab
unlists its resources too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#27 now fills the generic ResourceTableStore options. Study view's
options keep isHiddenFromStudyResourceTable as hideResource, and the
Pathology Slides tab's own slide table also takes hideMetadataKey, so
the slides' serving block stays out of it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ts-ui

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- A combined tab may share its id with one of its members: members are
  looked up first, so the tab no longer disappears, and it sits at its
  first member's position. A fetched non-member with its id is dropped.
- A resource in two combined tabs belongs to the first (warned once);
  tab building, isResourceListedInTable and listedResourceTabs agree.
- Once the tabs load, a selection they lack (removed by a cohort change,
  hidden, or a combined member) reads nothing: unscoped stores fall back
  to the first tab, stores scoped with scopeToResource read nothing.
- The download returns nothing while the tabs reload.
- A combined tab is always a table, never a study-wide viewer tab.
- The legacy Files & Links label counts listed tabs, so a lone combined
  tab shows its label.
- hideMetadataKey is documented as display-only.
- resourceIdFields moves to resourceTableCohort.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The store now reads a tab's resources only once its tabs are complete.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Keeps the Pathology Slides table's own store options, now scoped with
scopeToResource. ResourcePolicy.spec asks hideResource about the
PATHOLOGY_SLIDES tab id directly: isResourceListedInTable is about
resources, and a combined tab's id that is not a member is not one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ts-ui

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
setCohort reset the store's search and column filters, but the table's
search box and filter chips keep their own state, so after a study-view
chart click the rows came back unfiltered while the chips still showed,
and the next facet click brought the filter back. Keep search and
filters across a cohort change and reset only paging, as study-view
filters compose. A filter value the new cohort lacks matches no rows
while its chip stays visible. Changing the resource still clears them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…udy-slide-table

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The backend matches slide keys by substring against the bare lower-case
key, but only a complete Slide ID was converted, so partial input such
as WSI-0acd, wsi-0acd-ab, 0acd-ab3d or an upper-case bare key found
nothing. In a slide table, a term starting with WSI- or shaped like the
leading groups of a Slide ID now searches for its key characters with
the prefix and dashes removed, lower-cased, and an all-hex term is
lower-cased. Dates such as 2024-01, names and other terms are sent as
typed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…261112

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…n-20261112

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

# Conflicts:
#	packages/cbioportal-wsi-viewer/src/WSIViewer.tsx
#	packages/cbioportal-wsi-viewer/src/wsiViewerController.ts
…ldren-20261112

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

# Conflicts:
#	end-to-end-test-playwright/tests/wsi-foundation-mocks.ts
#	packages/cbioportal-wsi-viewer/package.json
#	packages/cbioportal-wsi-viewer/src/wsiMetaUtils.spec.ts
#	packages/cbioportal-wsi-viewer/src/wsiMetaUtils.ts
#	packages/cbioportal-wsi-viewer/src/wsiNavPanel.tsx
)

This merge takes its tree entirely from deploy/wsi-rd-children-20261112
(dd19c06), the second parent:
- codex/wsi-study-slide-facets-ui (#29, 7e493f7; stacked on #23 and #27)
- codex/wsi-rd-study (#17, 0c999a1)
- codex/wsi-rd-molecular (#18, ce690cf)
- codex/wsi-summary-timeline (#28, 406f52b)

The annotation (#19) and research assistant (#20) branches merged earlier
are not part of the result. The first parent keeps the branch's earlier
history, so the push is a fast-forward.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@raylim raylim changed the title test(wsi): integration check for the resource-data frontend (not a merge target) test(wsi): integration check for #29 + #17 + #18 + #28 (not a merge target) Nov 12, 2026
@raylim

raylim commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Integration check no longer used: 27500 builds from a local deploy branch on the upstream PRs (cBioPortal#5819, /5820, /5822, /5823).

@raylim raylim closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant